package com.gaoyi.crm.db.dao;

import androidx.room.Dao;
import androidx.room.Query;

import com.gaoyi.crm.db.CrmDatabase;
import com.gaoyi.crm.db.entity.TableVersion;
import com.gaoyi.crm.db.query.SynClientQuery;

import java.util.List;

@Dao
public abstract class TableVersionDao extends BaseDao<TableVersion> {

    @Query("SELECT objName,synVer FROM " + CrmDatabase.TABLE_VERSION)
    public abstract List<SynClientQuery> getTableVersion();

    @Query("SELECT * FROM " + CrmDatabase.TABLE_VERSION + " WHERE objName = :name")
    public abstract TableVersion getTableVersion(String name);
}
